﻿@using Xwy.MyProject.Modules.Dto
@using Xwy.MyProject.Web.Models.Common.Modals
@model ModuleDto
@{
    Layout = null;
}
@await Html.PartialAsync("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("EditModule")))
<form name="ModuleEditForm" role="form" class="form-horizontal">
    <input type="hidden" name="Id" value="@Model.Id" />
    <div class="modal-body">
        <div class="form-group row required">
            <label class="col-md-3 col-form-label">@L("Name")</label>
            <div class="col-md-9">
                <input type="text" asp-for="Name" name="Name" class="form-control" required maxlength="255" minlength="2">
            </div>
        </div>
        <div class="form-group row required">
            <label class="col-md-3 col-form-label">@L("DisplayName")</label>
            <div class="col-md-9">
                <input type="text" asp-for="DisplayName" name="DisplayName" class="form-control" required maxlength="255">
            </div>
        </div>
        <div class="form-group row required">
            <label class="col-md-3 col-form-label">@L("Url")</label>
            <div class="col-md-9">
                <input type="url" name="Url" asp-for="Url" class="form-control" required maxlength="255">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-md-3 col-form-label">@L("HotKey") </label>
            <div class="col-md-9">
                <input type="text" name="HotKey" asp-for="HotKey" class="form-control" maxlength="255">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-md-3 col-form-label">@L("IconName")</label>
            <div class="col-md-9">
                <input type="text" name="IconName"  asp-for="IconName" />
            </div>
        </div>
        <div class="form-group row">
            <label class="col-md-3 col-form-label">@L("Status")</label>
            <div class="col-md-9">
                <input type="text" name="Status" asp-for="Status"  />
            </div>
        </div>
        <div class="form-group row">
            <label class="col-md-3 col-form-label">@L("ParentName")</label>
            <div class="col-md-9">
                <input type="text" name="ParentName" asp-for="ParentName" />
            </div>
        </div>

    </div>
    @await Html.PartialAsync("~/Views/Shared/Modals/_ModalFooterWithSaveAndCancel.cshtml")
</form>

<script src="~/view-resources/Views/Modules/_EditModal.js" asp-append-version="true"></script>
